//*- coding = utf-8 -*-
//@Time : 2022-11-10 23:40
//@Author : 沉默小管
//@File : index.js
//@web  : golangblog.blog.csdn.net
//@Software: WebStorm
import { NestMiddleware } from '@nestjs/common';

import { Response, Request, NextFunction } from 'express';

export class MiddlewareCustom implements NestMiddleware{
  use(req: Request, res: Response, next:NextFunction): any {
    // const clientIp = requestIp.getClientIp(req)
    // console.log(clientIp);
    console.log('我经过了');
    next()
  }
}